package com.bwbear.test.demo;

import interfaces.IUserService;

public class ConsumerBoot {



    public static void main(String[] args) throws InterruptedException {

        //1.创建代理对象
        IUserService service = (IUserService) RPCConsumer.createProxy(IUserService.class);

        //2.循环给服务器写数据
        while (true){
            System.out.println("发送开始");
            String result = service.sayHello("are you ok !!");
            System.out.println("发送结束");
            System.out.println(result);
            Thread.sleep(2000);
        }

    }
}
